package lab_15.com.acme.bankapp.domain.bank.Email;

public class Email {
	private String emailAddress;
	private String name;
	private String message;

	public String getEmailAddress() {
		return emailAddress;
	}

	public String getName() {
		return name;
	}

	public String getMessage() {
		return message;
	}


	public Email(String emailAddress, String name, String message) {
		this.emailAddress = emailAddress;
		this.name = name;
		this.message = message;
	}

	public void send() {
		System.out.format("Sending notification email to address %s for client %s:\n" +
				"%s\n",
				getEmailAddress(),
				getName(),
				getMessage());
		
	}
}
